<?php
class Admin_Model_Topmenu extends Zend_Db_Table_Abstract{
	protected $_name='tblcategories';
	
	public function getTopmenu(){
	   
		$sql = $this->_db->select()
                         ->from($this->_name)
                         ->where('1=1');
        return $this->_db->fetchAll($sql);
	}
	
	public function getSubmenu(){
		$sql = $this->_db->select()
                         ->from('tblcomponent')
                         ->where('1=1');
        return $this->_db->fetchAll($sql);
	}
}